# -*- conding:UTF-8 -*-

'''
@ Project: finance
@ File: serializer.py
@ Author: 韩成瑾
@ Date：2022/10/24 11:29

'''
from rest_framework.serializers import ModelSerializer

from myapp.models import Exchange, VirtualCoin, KlineMfifteen, KlineMone, TrendHistory, DealValue


class ExchangeSerializer(ModelSerializer):
    class Meta:
        model = Exchange
        fields = '__all__'


class VirtualSerializer(ModelSerializer):
    class Meta:
        model = VirtualCoin
        fields = '__all__'

class TradingSer(ModelSerializer):
    class Meta:
        model = DealValue
        fields = "__all__"


class TrendHistorySer(ModelSerializer):
    class Meta:
        model = TrendHistory
        fields = "__all__"



class klineMSer(ModelSerializer):
    class Meta:
        model = KlineMone
        fields = "__all__"

class KlineMfifteenSer(ModelSerializer):
    class Meta:
        model = KlineMfifteen
        fields = "__all__"